package com.xujiakai.car.maintain.infrastructure.mapper;


import com.xujiakai.car.maintain.domain.dto.CustomerDTO;
import com.xujiakai.car.maintain.userinterface.views.CustomerView;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CustomerDTO record);

    int insertSelective(CustomerDTO record);

    CustomerDTO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CustomerDTO record);

    int updateByPrimaryKey(CustomerDTO record);
    
    List<CustomerDTO> selectCustomerByKey(@Param("keyworld") String keyworld);
    
    List<CustomerView> selectCustomer(
    		@Param("key") String key,
    		@Param("sort") String sort,
    		@Param("order") String order);
}